package com.yjp.service;

import com.yjp.spring.YjpApplicationContext;

public class MyTest {
    public static void main(String[] args){
        YjpApplicationContext applicationContext = new YjpApplicationContext(AppConfig.class);

//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
//        System.out.println(applicationContext.getBean("userService"));
        System.out.println(applicationContext.getBean("userService"));
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();


    }
}
